<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>post参数测试示例</title>
	</head>
	<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<body>
	<input type="button" id="but1" value="发送list" onclick="sendList()"/>
	<script>

	function sendList(){
		var ticketIds =["155592145353000332","155592145353000493"];
		$.ajax({
			url:"https://www.yingmuren.com/guarantee/order/add",
			type:"post",
			dateType:'json',
			headers: {
				"Content-Type" : "application/x-www-form-urlencoded",
				"token": "eyJhbGciOiJIUzI1NiJ9.eyJvcGVuaWQiOiJteW9wZW5kIiwiaWQiOjEsImV4cCI6MTU4Njc0MzUyNywiaWF0IjoxNTU1NjM5NTI3LCJqdGkiOiI2YTU2OGMzMS01ZTJiLTQyYmEtOTk3Mi01ODFlNDkxOTNhOWEifQ.DlXkaCuN60Z7HiMa7mlKL0xvcaxfm1X2DHZaX9Bq7Fk"
			},
			data:{
				ticketIds	: ticketIds,
				orderTitle : "嘿,哥哥，你的",
				orderAmount	:  10000	,
				realAmount	:	10000,
				payType	:	1,
				fee	:	0,
				orderDetail	:	"我me",
				carId	:	"C1555556407608",
			},
			success:function(res){
				console.info(res);
			},
			error:function(err){
				console.info(err);
			}
		})
		// var ids =[1,2,3,4,5,6];
		// $.ajax({
		// 	url:"http://localhost:8080/order/test",
		// 	type:"post",
		// 	dateType:'json',
		// 	data:{
		// 		ids:ids
		// 	},
		// 	success:function(res){
		//
		// 	},
		// 	error:function(err){
		// 	}
		// })
	}
	</script>  
</body>

</html>